package com.nwpu.bigdata.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.nwpu.bigdata.dto.Common;
import com.nwpu.bigdata.service.StorageService;


/**
 *@version:2018年6月11日下午4:49:36
*/
/**
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/storage")
public class StorageController {
@Autowired
private StorageService storageService;
@RequestMapping(value="/node/free", method={RequestMethod.GET}, produces="application/json;charset=UTF-8")
public @ResponseBody List<Common> StorageNode(ModelAndView modelAndView) throws Exception {
 
	List<Common> list = storageService.storageFree();
	
	return list;
}


}
